<?php

/**
 * SocialEngine
 *
 * @category   Application_Extensions
 * @package    Sitealbum
 * @copyright  Copyright 2010-2011 BigStep Technologies Pvt. Ltd.
 * @license    http://www.socialengineaddons.com/license/
 * @version    $Id: index.tpl 2011-08-026 9:40:21Z SocialEngineAddOns $
 * @author     SocialEngineAddOns
 */
?>
<?php 
	$this->headLink()
  ->appendStylesheet($this->layout()->staticBaseUrl
    . 'application/modules/Sitealbum/externals/styles/style_sitealbum.css')
?>
<?php
$photoSettings = array();
$photoSettings['class'] = 'thumb';
$photoSettings['title'] =  $this->photoOfDay->getTitle();
if ($this->showLightBox):
$photoSettings["onclick"]="openLightBoxAlbum('".$this->photoOfDay->getPhotoUrl()."','".Engine_Api::_()->sitealbum()->getLightBoxPhotoHref($this->photoOfDay)."');return false;";
  include_once APPLICATION_PATH . '/application/modules/Sitealbum/views/scripts/_lightboxPhoto.tpl';
endif;
?>
<ul class="generic_list_widget">
	<li>
		<div>
		  <?php echo $this->htmlLink($this->photoOfDay->getHref(), $this->itemPhoto($this->photoOfDay), $photoSettings); ?>
		</div>
		<div class="owner">
		  <?php
		  $owner = $this->photoOfDay->getOwner();
		  $parent = $this->photoOfDay->getParent();
		  echo $this->translate('By %1$s in %2$s',
		          $this->htmlLink($owner->getHref(), $owner->getTitle()),
		          $this->htmlLink($parent->getHref(), $parent->getTitle()));
		  ?>
		</div>
	</li>  
</ul>